<?php
/**
 * Created by PhpStorm.
 * User: Acer
 * Date: 2022/7/31
 * Time: 0:13
 */
namespace app\move\controller;

use app\admin\service\BannerService;
use app\core\MyController as MyController;
class Banner extends MyController
{
    protected $noNeedAction = []; // 不需要校验控制器，通道
    // 操作前置
    protected $beforeActionList = ['my_initialize'];

    // 操作前置方法
    public function my_initialize()
    {
    }

    // 获取列表
    public function get_banner(){
        $BannerService = new BannerService();
        $res = $BannerService->s_get_list(true);
        _action_result(200,$res ? $res : [],'操作成功！');
    }
}